import Index from '@/pages';

const routesConfig = {
    menus: [ // 菜单相关路由
        { key: '/app/dashboard/index', title: '首页', icon: 'dashboard', component: Index }
    ],
    others: [

    ] 
};

const breadcrumbNameMap = {};

Object.keys(routesConfig).map(key =>
    routesConfig[key].forEach(r => {
        breadcrumbNameMap[r.key] = r;
        r.subs && r.subs.map(r => breadcrumbNameMap[r.key] = r);
    })
);

export { breadcrumbNameMap };

export default routesConfig;
